package com.langchain4j.soft.common;

import com.langchain4j.soft.service.Assistant;
import dev.langchain4j.agent.tool.Tool;
import io.micrometer.observation.annotation.Observed;
import org.springframework.stereotype.Component;

import java.time.LocalTime;

/**
 * @author chenwj
 */
@Component
public class AssistantTools {

    /**
     * This tool is available to {@link Assistant}
     */
    @Tool
    @Observed
    public String currentTime() {
        return LocalTime.now().toString();
    }
}